import logging,yagmail
def log_caiji():
    logging.basicConfig(filename="log.log",filemode="w",level=logging.DEBUG,format="%(filename)s--%(message)s")
def yj(filst):
    main=yagmail.SMTP(user="2071730624@qq.com",password="ulysgdzvaqjwbfcd",host="smtp.qq.com",encoding='utf-8')
    main.send(to="2071730624@qq.com",subject="a3mall接口测试报告",contents="你好",attachments=filst)